<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</head>

<body class="container">
    <h2 align="center">模态框网格</h2>
    <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#Modal">
        打开模态框
    </button>
    <div class="modal" id="Modal">
        <div class="modal-dialog modal-dialog-centered">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="modalTitle">模态框网格</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal">
                        <span>&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="container">
                        <div class="row">
                            <div class="col-md-4 bg-success text-white">.col-md-4</div>
                            <div class="col-md-4 ms-auto bg-success text-white">.col-md-4 .ms-auto</div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 ms-md-auto bg-danger text-white">.col-md-3 .ms-md-auto</div>
                            <div class="col-md-4 ms-md-auto bg-danger text-white">.col-md-3 .ms-md-auto</div>
                        </div>
                        <div class="row">
                            <div class="col-auto me-auto bg-warning">.col-auto .me-auto</div>
                            <div class="col-auto bg-warning">.col-auto</div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary">更多</button>
                </div>
            </div>
        </div>
    </div>
</body>

</html>